package com.hm.product.controller;

import com.hm.product.entity.DwjcdjEntity;
import com.hm.product.service.DwjcService;
import com.ruoyi.common.core.web.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/product/dwjc")
public class DwjcController {

    @Autowired
    DwjcService dwjcService;

    @PostMapping("/save")
    public AjaxResult save(@RequestBody DwjcdjEntity dwjcdjEntity){

        dwjcService.save(dwjcdjEntity);
        return AjaxResult.success();
    }


}
